package com.motorwaymanage.beans;
/**
 * 设备信息 
 */
public class SheBeiInfo {
	private int sid;
	private String sname;
	private String stype;
	private double sprice;
	
	@Override
	public String toString() {
		return "SheBeiInfo [sid=" + sid + ", sname=" + sname + ", stype=" + stype + ", sprice=" + sprice + "]";
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getStype() {
		return stype;
	}

	public void setStype(String stype) {
		this.stype = stype;
	}

	public double getSprice() {
		return sprice;
	}

	public void setSprice(double sprice) {
		this.sprice = sprice;
	}

	public SheBeiInfo(int sid, String sname, String stype, double sprice) {
		super();
		this.sid = sid;
		this.sname = sname;
		this.stype = stype;
		this.sprice = sprice;
	}

	public SheBeiInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + sid;
		result = prime * result + ((sname == null) ? 0 : sname.hashCode());
		long temp;
		temp = Double.doubleToLongBits(sprice);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + ((stype == null) ? 0 : stype.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SheBeiInfo other = (SheBeiInfo) obj;
		if (sid != other.sid)
			return false;
		if (sname == null) {
			if (other.sname != null)
				return false;
		} else if (!sname.equals(other.sname))
			return false;
		if (Double.doubleToLongBits(sprice) != Double.doubleToLongBits(other.sprice))
			return false;
		if (stype == null) {
			if (other.stype != null)
				return false;
		} else if (!stype.equals(other.stype))
			return false;
		return true;
	}
}
